package com.newsystem.mapper;

import com.newsystem.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newsystem.pojo.vo.AdminInfo;
import com.newsystem.pojo.vo.GeneralUserInfo;
import com.newsystem.pojo.vo.MediumInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 使用者 Mapper 接口
 * </p>
 *
 * @author chenlitao
 * @since 2022-11-06
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectByAccount(String account);


    AdminInfo selectAdmin(String userId);

    GeneralUserInfo selectGeneralUser(String userId);

    MediumInfo selectMedium(String userId);
}
